home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 March
/
PCWorld_2002-03_cd.bin
/
Software
/
TemaCD
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ MSO2K Places 1.xpl
< prev
next >
Wrap
Text File
|
2000-12-09
|
3KB
|
102 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="5"
"UIPATH"="Program Options\Microsoft Office\MS Office 2000\Open/Save Dialog"
"NAME"="Visible Items"
"VERSION"="1.03"
"LANGUAGE"="VBScript"
"TEXT 1"="Show "Desktop" in places bar"
"TEXT 2"="Show "Favorites" in places bar"
"TEXT 3"="Show "My Documents" in places bar"
"TEXT 4"="Show "Publishing/Network" in places bar"
"TEXT 5"="Show "Recent" in places bar"
"DESCRIPTION 1"="Office 2000 has an "Places Bar" on the right-side of its Open/Save dialog."
"DESCRIPTION 2"="This dialog features a lot of system folders by default, but you can deactivate them here."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Thanks to http://www.pcnineoneone.com/tweaks/tweekz1g.html"
"COMMENT 3"="Thanks also to Dunn Steve-BSD001 [Steve_Dunn-BSD001@email.mot.com] for the idea!"
sV1="HKCU\Software\Microsoft\Office\9.0\Common\Open Find\Places\StandardPlaces\Desktop\Show"
sV2="HKCU\Software\Microsoft\Office\9.0\Common\Open Find\Places\StandardPlaces\Favorites\Show"
sV3="HKCU\Software\Microsoft\Office\9.0\Common\Open Find\Places\StandardPlaces\MyDocuments\Show"
sV4="HKCU\Software\Microsoft\Office\9.0\Common\Open Find\Places\StandardPlaces\Publishing\Show"
sV5="HKCU\Software\Microsoft\Office\9.0\Common\Open Find\Places\StandardPlaces\Recent\Show"
sPCheck="HKCU\Software\Microsoft\Office\9.0\"
Sub Plugin_Initialize
if RegPathExists(sPCheck) then
i=RegReadValue(sV1)
if i=1 or IsEmpty(i) then SetUiElement 1,true
i=RegReadValue(sV2)
if i=1 or IsEmpty(i) then SetUiElement 2,true
i=RegReadValue(sV3)
if i=1 or IsEmpty(i) then SetUiElement 3,true
i=RegReadValue(sV4)
if i=1 or IsEmpty(i) then SetUiElement 4,true
i=RegReadValue(sV5)
if i=1 or IsEmpty(i) then SetUiElement 5,true
else
disable()
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
if GetUIElement(1)=true then
Call RegWriteValue(sV1,1,2)
else
Call RegWriteValue(sV1,0,2)
end if
if GetUIElement(2)=true then
Call RegWriteValue(sV2,1,2)
else
Call RegWriteValue(sV2,0,2)
end if
if GetUIElement(3)=true then
Call RegWriteValue(sV3,1,2)
else
Call RegWriteValue(sV3,0,2)
end if
if GetUIElement(4)=true then
Call RegWriteValue(sV4,1,2)
else
Call RegWriteValue(sV4,0,2)
end if
if GetUIElement(5)=true then
Call RegWriteValue(sV5,1,2)
else
Call RegWriteValue(sV5,0,2)
end if
Call Logoff()
End Sub
Sub Plugin_Terminate
End Sub